﻿using System;
/*
    Write a program that enters a number n and after that enters more n numbers and calculates and prints their sum
 */
class SumOfNNumbers
{
    static void Main()
    {
        Console.WriteLine("Enter Amount of numbers :");
        double n = int.Parse(Console.ReadLine());
        double sum = 0;

        for (double i = 1; i <= n; i++)
        {
            Console.WriteLine("Enter the" + i + "th number: ");
            sum = double.Parse(Console.ReadLine()) + sum;
        }
        Console.WriteLine("The sum is: " + sum);
    }
}
